<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>专属活动</title>
		
		<link rel="stylesheet" type="text/css" href="/zhenze/Public/home/css/reset.css"/>
		<link rel="stylesheet" href="/zhenze/Public/home/css/huodong.css" />
		<link rel="stylesheet" href="/zhenze/Public/home/css/font-awesome.min.css" />
	</head>
	<body>
		<div class="top">
			<a href="javascript:history.go(-1);"><i class="fa fa-angle-left"></i></a>
			<p>活动详情</p>
		</div>
		<div>
			<div class="cont">
				<div class="title">
					<p><?php echo ($newslinfo["event_title"]); ?></p>
				</div>
				<img class="img01" src="<?php echo ($newslinfo["event_image"]); ?>" />
				<p class="p01"></p>
				<div style="font-size: 0.75rem;line-height: 1.15rem;width: 16rem;margin: 0 auto;"><?php echo content_strip($newslinfo['event_content']) ?></div>
			</div>
			<?php if($isvip == '1'): ?><div id="code"></div>
			<?php else: ?> 
				<div style="width: 16rem;font-size: 0.75rem;line-height: 1.15rem;margin: 0 auto;padding-top:40px;">您还不是我的小主人，我还不能为您服务，快去<a href="<?php echo U('index/reserve');?>" style="color:red;">预约办卡</a>或查看<a href="<?php echo U('index/index',array('divclick'=>1));?>"  style="color:red;">小主人计划</a>。</div><?php endif; ?>
			<br><br><br><br>
		</div>
		<script src="/zhenze/Public/home/js/screenSize.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="/zhenze/Public/home/js/jquery-3.1.1.min.js" ></script>
		<script type="text/javascript" src="/zhenze/Public/home/js/jquery.qrcode.min.js"></script>
		<style type="text/css">
		#code{margin: 0 auto;display:black;width:9rem;padding-top:10px;}
		</style>
		<script type="text/javascript">
		$(function(){
			var str = "<?php echo (C("WEB_URL")); ?>/index.php?m=home&c=seller&a=joinevent&user_id=<?php echo ($user_id); ?>&event_id=<?php echo ($event_id); ?>";
			$("#code").qrcode({
				render: "table",
				width: 500,
				height:500,
				text: str
			});
		})
		</script>
	</body>
</html>